Provides several different debugging screens to provide insight into the
data behind the page. The value of the 'debug' request parameter determines
the screen.
This interceptor only is activated when devMode is enabled in
webwork.properties. The 'debug' parameter is removed from the parameter list
before the action is executed. All operations occur before the natural
Result has a chance to execute.
![](./icons/emoticons/warning.gif) |
The debug interceptor will place the Ognl stack into the session. This can cause problems when the session is attempted to be serialised (such as when using a session based clustering service, when Tomcat startsup/shutsdown etc.) as your stack may contain non-serializable objects such as services or loggers (in particular log4j Logger which does not implement serializable). |
Parameters
The value of the 'debug' request parameter determines
the screen.
-
xml - Dumps the parameters, context, session, and value
stack as an XML document.
-
console - Shows a popup 'OGNL Console' that allows the
user to test OGNL expressions against the value stack. The XML data from
the 'xml' mode is inserted at the top of the page.
-
command - Tests an OGNL expression and returns the
string result. Only used by the OGNL console.
Extending the Interceptor
There's no intended extension points
Examples
<action ...>
<interceptor-ref name="debugging" />
....
</action>
|